extends "../cTDP_6/cTDP_6.gd"
func _info():
	pass

func _connect():
	._connect()

func _extInit():
	._extInit()
	chaName = "吟游诗人"
	lv = 3
	attCoe.maxHp = 1200 / 112.5 / 3
	attAdd.dod = 0.33
	addCdSkill("yysr",5)
	addCdSkill("yysr1",9)
	addSkillTxt("瑶云：使我方所有刺客攻击增加（8 + 自身血量上限3%）点，持续3秒[cd:5秒]")
	addSkillTxt("狂想曲：使我方所有单位攻击提升20%，持续5秒[cd:9秒]")

func _castCdSkill(id):
	._castCdSkill(id)
	var chas = getAllChas(2)
	if id == "yysr":
		for i in chas:
			if i.get("camp") == "刺客":
				i.addBuff(BF.new(8+att.maxHp*0.03))
	if id == "yysr1":
		for i in chas:
			i.addBuff(BF1.new(1))

class BF:
	extends Buff
	func _init(lv):
		attInit()
		life = 3
		att.atk = lv

class BF1:
	extends Buff
	func _init(lv):
		attInit()
		life = lv * 5
		att.atkL = 0.2
